﻿using FluentValidation;
using Portal.Models.SkillsCatalog;

namespace Portal.Logic.Validators.SkillsCatalog
{
	/// <summary>
	/// Class <see cref="CurriculumVitaeValidator"/> define curriculum vitae validator
	/// </summary>
	public class CurriculumVitaeValidator : BaseValidator<ICurriculumVitae>, ICurriculumVitaeValidator
	{
		#region .ctor
		/// <summary>
		/// Initializes a new instance of the <see cref="CurriculumVitaeValidator"/> class.
		/// </summary>
		public CurriculumVitaeValidator()
		{
			//RuleFor(x => x.Value)
			//	.NotEmpty()
			//	.Length(0, 50);

			//RuleFor(x => x.Value)
			//	.EmailAddress()
			//	.When(x => x.Type == ContactInfoType.Email);
			//RuleFor(x => x.Value)
			//	.Matches( RegularExpressions.POLISH_MOBILE_PHONE_NUMBER + "|" + RegularExpressions.POLISH_STATIONARY_PHONE_NUMBER)
			//	.When(x => x.Type == ContactInfoType.Phone);
		}
		#endregion
	}
}